// !@#$McCaBe-InStRuMeNtAtIoN$#@!
// Instrumented with the McCabe Java Parser
// Version: 8.1.0.1 - 20110309
// Using Path Vector Instrumentation
// Date: Sun Apr 01 2012 20:40:28
package EventManager;

import com.mccabe.*;


class RequestProcessor_0849ac2a688168db3b426b7e36e1bbc5 {
    static java.lang.Object info[];
    static {
        info = new java.lang.Object[2];
        info[0] = new Integer(-1);
        info[1] = new String("R:\\yu\\Concordia\\SOEN 344 Design II\\Term Assignment\\Code Repo\\trunk\\Iteration 3\\ERS\\src\\EventManager\\RequestProcessor.java");
    }
}


/**
 * A synchronized way of working with the model.. static a bottleneck.
 * @author Yury Kitaev
 *
 */
public class RequestProcessor 
{
	/**
	 * Processes user-level requests
	 * @param request
	 * @return
	 */
	public static synchronized Request process (Request request)
	{
int _mcFreq_d27810527b4184d53a0a70d7be2ab277[] = new int[1];
PathVec_ERS_Iter3.enterMethod(RequestProcessor_0849ac2a688168db3b426b7e36e1bbc5.info,0,_mcFreq_d27810527b4184d53a0a70d7be2ab277,0);

		request.process();
		return request;
	}
	
	/**
	 * Processes admin requests
	 * @param request
	 * @param issuer
	 * @return
	 */
	public static synchronized AdminRequest process (AdminRequest request, Administrator issuer)
	{
int _mcFreq_a32193b3acada7c7e93f3e04a88541cd[] = new int[1];
PathVec_ERS_Iter3.enterMethod(RequestProcessor_0849ac2a688168db3b426b7e36e1bbc5.info,1,_mcFreq_a32193b3acada7c7e93f3e04a88541cd,0);

		request.process(issuer);
		return request;
	}
}
